<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>角色管理</title>
		<link rel="stylesheet" type="text/css" href="${s.base}/lib/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="${s.base}/css/base/index.css" />
	</head>
	<body class="wrap-container clearfix">
		<div class="column-content-detail padt10" id="tool">
			<!--<div class="layui-fluid cyt-sim-table">-->
				<!--<div class="layui-col-md3">项目名称</div>-->
				<!--<div class="layui-col-md3">教学设备</div>-->
				<!--<div class="layui-col-md3">招标控制价</div>-->
				<!--<div class="layui-col-md3">10.60</div>-->
			<!--</div>-->
			<form class="layui-form" action="">
			<div class="cy-table-item-title"><div class="cy-button-ctn"></div>招标发布</div>
				<button type="button" class="layui-btn layui-btn-normal layui-btn-mid marb5" id="testList">添加招标</button>
			<table width="100%" class="cyt-sim-table">
				<caption align="top">第一次招标</caption>
				<tr>
					<td>项目名称</td>
					<td>教学设备</td>
					<td>招标控制价</td>
					<td>10.60</td>
				</tr>
				<tr>
					<td>项目类型</td>
					<td>信息化</td>
					<td>招标类型</td>
					<td>
						<select name="interest" lay-filter="aihao" class="pad0">
							<option value=""></option>
							<option value="0">招标类型1</option>
							<option value="1">招标类型2</option>
							<option value="2">招标类型3</option>
							<option value="3">招标类型4</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>招标方式</td>
					<td><select name="interest" lay-filter="aihao" class="pad0">
						<option value=""></option>
						<option value="0">招标方式1</option>
						<option value="1">招标方式2</option>
						<option value="2">招标方式3</option>
						<option value="3">招标方式4</option>
					</select></td>
					<td>挂网日期</td>
					<td>请选择</td>
				</tr>
				<tr>
					<td>招标开始日期</td>
					<td>
						<input type="text" name="date" id="date" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
					</td>
					<td>招标结束日期</td>
					<td><input type="text" name="date" id="date1" lay-verify="date1" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input"></td>
				</tr>
				<tr>
					<td>代理机构</td>
					<td><input placeholder="请输入代理机构名称"></td>
					<td>代理人</td>
					<td><input placeholder="请输入代理人"></td>
				</tr>
				<tr>
					<td>联系电话</td>
					<td><input placeholder="请输入联系电话" name="tel" id="tel"></td>
					<td>招标地点</td>
					<td><input placeholder="请输入招标地点" name="add" id="add"></td>
				</tr>
				<tr>
					<td>是否流标</td>
					<td colspan="3"><select name="interest" lay-filter="aihao" class="pad0">
						<option value=""></option>
						<option value="0" selected>是</option>
						<option value="1">否</option>
					</select></td>
				</tr>
				<tr>
					<td>附件</td>
					<td colspan="3"class="pad0">
						<button type="button" class="layui-btn viewbtn cy-a-blue" id="testList1"><i class="iconfont">&#xe7e2;</i>选择多文件</button>
						<input type="hidden"  name="objectId"/>
						<div class="file-name-ctn">
							<ul class="uploadfile-list clearfix">
								<li><a><i class="iconfont">&#xe7e2;</i>附件名称附件名称附件名称附件名称附件名称附件名称附件名称附件名称.txt</a></li>
								<li class="fileopert">预览</li>
								<li class="fileopert">删除</li>
							</ul>
							<ul class="uploadfile-list clearfix">
								<li><a><i class="iconfont">&#xe7e2;</i>附件名称附件名称附件名称附件名称附件名称附件名称附件名称附件名称.txt</a></li>
								<li class="fileopert">预览</li>
								<li class="fileopert">删除</li>
							</ul>
						</div>
					</td>
				</tr>
			</table>
				<button type="button" class="layui-btn layui-btn-normal layui-btn-mid marb5 mart20">添加质疑</button>
				<table width="100%" class="cyt-sim-table">
					<caption align="top">第一次质疑</caption>
					<tr>
						<td>质疑函</td>
						<td colspan="3"class="pad0">
							<button type="button" class="layui-btn viewbtn cy-a-blue" id="testList1"><i class="iconfont">&#xe7e2;</i>选择多文件</button>
							<input type="hidden" id="objectId" name="objectId"/>
							<div class="file-name-ctn">
								<ul class="uploadfile-list clearfix">
									<li><a><i class="iconfont">&#xe7e2;</i>附件名称附件名称附件名称附件名称附件名称附件名称附件名称附件名称.txt</a></li>
									<li class="fileopert">预览</li>
									<li class="fileopert">删除</li>
								</ul>
								<ul class="uploadfile-list clearfix">
									<li><a><i class="iconfont">&#xe7e2;</i>附件名称附件名称附件名称附件名称附件名称附件名称附件名称附件名称.txt</a></li>
									<li class="fileopert">预览</li>
									<li class="fileopert">删除</li>
								</ul>
							</div>
						</td>
					</tr>
					<tr>
						<td>答疑文件</td>
						<td colspan="3"class="pad0">
							<button type="button" class="layui-btn viewbtn cy-a-blue" id="testList1"><i class="iconfont">&#xe7e2;</i>选择多文件</button>
							<input type="hidden" id="objectId" name="objectId"/>
							<div class="file-name-ctn" style="display: none">
								<ul class="uploadfile-list clearfix">
									<li><a><i class="iconfont">&#xe7e2;</i>附件名称附件名称附件名称附件名称附件名称附件名称附件名称附件名称.txt</a></li>
									<li class="fileopert">预览</li>
									<li class="fileopert">删除</li>
								</ul>
								<ul class="uploadfile-list clearfix">
									<li><a><i class="iconfont">&#xe7e2;</i>附件名称附件名称附件名称附件名称附件名称附件名称附件名称附件名称.txt</a></li>
									<li class="fileopert">预览</li>
									<li class="fileopert">删除</li>
								</ul>
							</div>
						</td>
					</tr>
					<tr>
						<td>澄清文件</td>
						<td colspan="3"class="pad0">
							<button type="button" class="layui-btn viewbtn cy-a-blue" id="testList1"><i class="iconfont">&#xe7e2;</i>选择多文件</button>
							<input type="hidden" id="objectId" name="objectId"/>
							<div class="file-name-ctn" style="display: none">
								<ul class="uploadfile-list clearfix">
									<li><a><i class="iconfont">&#xe7e2;</i>附件名称附件名称附件名称附件名称附件名称附件名称附件名称附件名称.txt</a></li>
									<li class="fileopert">预览</li>
									<li class="fileopert">删除</li>
								</ul>
								<ul class="uploadfile-list clearfix">
									<li><a><i class="iconfont">&#xe7e2;</i>附件名称附件名称附件名称附件名称附件名称附件名称附件名称附件名称.txt</a></li>
									<li class="fileopert">预览</li>
									<li class="fileopert">删除</li>
								</ul>
							</div>
						</td>
					</tr>
				</table>
				<div class="layui-form-item" style="padding-left: 10px;">
					<div class="layui-input-block center mart20">
						<button class="layui-btn layui-btn-normal" lay-submit lay-filter="submitBtn">提交</button>
						<button class="layui-btn layui-btn-normal" >保存</button>
						<button type="button" id="cancel" class="layui-btn layui-btn-primary">取消</button>

					</div>
				</div>
			</form>
		</div>
	</div>
	<script src="${s.base}/lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>
	<script src="${s.base}/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script>
            //Demo
            layui.use(['form', 'layedit', 'laydate','jquery'], function(){
                var form = layui.form
					,$ = layui.jquery
                    ,layer = layui.layer
                    ,layedit = layui.layedit
                    ,laydate = layui.laydate;

                //日期
                laydate.render({
                    elem: '#date'
                });
                laydate.render({
                    elem: '#date1'
                });

                //监听提交
                form.on('submit(formDemo)', function(data){
                    layer.msg(JSON.stringify(data.field));
                    return false;
                });
                //多附件上传
                baseutil.uploadMultiFile($('#demoList'),'#testList',"sys/mult",$("#objectId").val(),function (data) {
                    $("#objectId").val(data);
                })
            });
		</script>
	</body>
</html>